<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Admin_slider extends CI_Controller {

	function index()
	{
		$data['error'] ='display: none;';
		$data['home']  ='active';
		if($this->session->userdata('email') || $this->session->userdata('logged'))
		{
				
			$data['title'] = 'Admin Slider';	
			$this->load->model('admin_model');
			$data['results'] = $this->admin_model->home_slider();	
			$data['content'] = 'admin/admin_slider_add';
			$this->load->view('admin/template/template_DT',$data);	
		}
		else 
		{
			$this->load->view('admin/signup',$data);
		}
	}
	
	
	
	
	
	
}		
?>